home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / Demos / Bombardier_PC / BSCRIPTS.CST / 00054_Script_tour button < prev    next >
Text File  |  1999-04-25  |  2KB  |  83 lines

  1. -- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
  2. -- Developed for Bombardier, Inc.
  3. --
  4. -- All programming developed by: 
  5. -- Robert Fabricant, Valerie Valoueva, Ossi Shaked, 
  6. -- Henry Sauvageot, Chris Howell & Chris Girand
  7. --
  8. -- Use of this code by parties other than @radical.media, inc. or their
  9. --agents 
  10. -- without the express written consent of @radical.media, inc. AND Concurrent 
  11. -- New Media Group, L.L.C. is strictly prohibited.
  12. ------------------------------------------------------
  13. -------*This script is not used in this version of the movie*----------
  14.  
  15. property Rimage,Dimage,image,sprt, origNum, rollNum
  16.  
  17. on new me
  18.   --    set origName = the name of member the member of sprite the spriteNum of me
  19.   --  
  20.   --  set rollName = origName&"-roll"
  21.   --  set origNum = member origName
  22.   --  set rollNum = member rollName
  23. end
  24.  
  25.  
  26. on getPropertyDescriptionList
  27.   set description=[:]
  28.   --  addProp description,#Rimage,[#default:"",#format:#integer, ¼
  29. --  #comment:"The cast num for rollover image"]
  30.   --  
  31.   --  addProp description,#Dimage,[#default:"",#format:#integer, ¼
  32. --  #comment:"The cast num for the image when the mouse is down"]
  33.   --  
  34.   --  addProp description,#image,[#default:"",#format:#integer, ¼
  35. --  #comment:"The cast num for the image when not rolled over"]
  36.   --  
  37.   addProp description,#sprt,[#default:"",#format:#integer, ¼
  38.   #comment:"The sprite number "]
  39.   
  40.   return description
  41. end
  42.  
  43. on getbehaviorDescription
  44.   return "changes the image on rollover"
  45. end
  46.  
  47. on mouseenter me
  48.   --  set the member of sprite sprt = member rollNum
  49.   set the castnum of sprite sprt to the castnum of sprite sprt +1
  50.   updatestage
  51. end
  52. on mouseleave me
  53.   set the castnum of sprite sprt to the castnum of sprite sprt -1
  54.   --  set the member of sprite sprt = member origNum
  55.   updatestage
  56. end
  57.  
  58. on mouseup
  59.   global gFrame, menuController
  60.   set gFrame=the frame
  61.   sound stop(1)
  62.   sound stop(2)
  63.   updatestage
  64.   
  65.   if the name of member the member of sprite sprt contains "-roll" then
  66.     puppetsound 3,"qtvrstrt"
  67.   else
  68.     puppetsound 3,"mousedn"
  69.     
  70.     if IsQTVRMovie(gQTVRObj) then 
  71.       getview
  72.       closemovie
  73.     else
  74.       puppetsprite 22 false
  75.     end if
  76.   end if 
  77.   --  sendAllSprites(#CDSmallMenuPuppetsOff)
  78.   --  sendAllSprites(#CDMenuPuppetsOff)
  79.   --  sendAllSprites(#layoutPuppetsOff)
  80.   deselect menuController
  81.   pass
  82. end
  83.